package com.sxjh.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxjh.entity.FactoryEntity;
import com.sxjh.entity.GoodsLocation;
import com.sxjh.entity.param.GoodsLocationFactoryParam;
import com.sxjh.entity.param.GoodsLocationListParam;
import com.sxjh.entity.result.GoodsLocationLoadResult;
import com.sxjh.mapper.GoodsLocationMapper;
import com.sxjh.service.GoodsLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 货物地点  服务实现类
 * </p>
 *
 * @author zixin
 * @since 2021-06-05
 */
@Service
public class GoodsLocationServiceImpl extends ServiceImpl<GoodsLocationMapper, GoodsLocation> implements GoodsLocationService {

    @Autowired
    private GoodsLocationMapper goodsLocationMapper;

    @Override
    public List<GoodsLocationLoadResult> allLoad(Integer id) {
        return goodsLocationMapper.allLoad(id);
    }

    @Override
    public List<GoodsLocationLoadResult> allUnLoad(Integer id) {
        return goodsLocationMapper.allUnLoad(id);
    }

    @Override
    public IPage<GoodsLocationListParam> queryPage(IPage iPage, GoodsLocationListParam param) {
        return goodsLocationMapper.queryPage(iPage, param);
    }

    @Override
    public IPage<FactoryEntity> queryPage2(IPage iPage, GoodsLocationFactoryParam param) {
        return goodsLocationMapper.queryPage2(iPage, param);
    }


}
